<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Library Evolutionary Algorithms for Clustering (LEAC): include/interval_positiveintegers.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="leac_logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Library Evolutionary Algorithms for Clustering (LEAC)
   &#160;<span id="projectnumber">Version 1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">interval_positiveintegers.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="interval__positiveintegers_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#ifndef INTERVAL_POSITIVE_INTEGER_HPP</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#define INTERVAL_POSITIVE_INTEGER_HPP</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceruntime.html">runtime</a> {</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="keyword">template</span> &lt; <span class="keyword">typename</span> T_INTEGERDATATYPE &gt;</div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classruntime_1_1_interval_positive_integer.html">   32</a></span>&#160;<span class="keyword">class </span><a class="code" href="classruntime_1_1_interval_positive_integer.html">IntervalPositiveInteger</a> {</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="classruntime_1_1_interval_positive_integer.html#a3337ff60d8a71581d626a62f30844beb">   34</a></span>&#160;  <a class="code" href="classruntime_1_1_interval_positive_integer.html#a3337ff60d8a71581d626a62f30844beb">IntervalPositiveInteger</a>(T_INTEGERDATATYPE aiui_sizeInterval) :</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <a class="code" href="classruntime_1_1_interval_positive_integer.html#afa85dc12926acde8528a410bfeef7abb">ui_upperBound</a>(0), <a class="code" href="classruntime_1_1_interval_positive_integer.html#aba51e34947c0fdbf11a10828657fa4e4">ui_sizeInterval</a>(aiui_sizeInterval) {}</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classruntime_1_1_interval_positive_integer.html#adf85cb429c44b22444bb618422338b24">   37</a></span>&#160;  <a class="code" href="classruntime_1_1_interval_positive_integer.html#adf85cb429c44b22444bb618422338b24">~IntervalPositiveInteger</a>() {}</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classruntime_1_1_interval_positive_integer.html#ad55d97a8b5cb0dc6c01e5dbe89aca0e4">   39</a></span>&#160;  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classruntime_1_1_interval_positive_integer.html#ad55d97a8b5cb0dc6c01e5dbe89aca0e4">initialize</a>() { </div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    this-&gt;<a class="code" href="classruntime_1_1_interval_positive_integer.html#afa85dc12926acde8528a410bfeef7abb">ui_upperBound</a> = 0;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;  }</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classruntime_1_1_interval_positive_integer.html#a90db61e394006061a12166ff73f6a7d5">   43</a></span>&#160;  T_INTEGERDATATYPE <a class="code" href="classruntime_1_1_interval_positive_integer.html#a90db61e394006061a12166ff73f6a7d5">getLowerBound</a>()</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;  {  </div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keywordflow">return</span> (this-&gt;ui_upperBound &lt; this-&gt;<a class="code" href="classruntime_1_1_interval_positive_integer.html#aba51e34947c0fdbf11a10828657fa4e4">ui_sizeInterval</a>)?0</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;      :this-&gt;<a class="code" href="classruntime_1_1_interval_positive_integer.html#afa85dc12926acde8528a410bfeef7abb">ui_upperBound</a> - this-&gt;<a class="code" href="classruntime_1_1_interval_positive_integer.html#aba51e34947c0fdbf11a10828657fa4e4">ui_sizeInterval</a>;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;  }</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classruntime_1_1_interval_positive_integer.html#a1a91051ab59ff33e8139ac3ec50b86e1">   49</a></span>&#160;  T_INTEGERDATATYPE <a class="code" href="classruntime_1_1_interval_positive_integer.html#a1a91051ab59ff33e8139ac3ec50b86e1">getUpperBound</a>() </div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;  {</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <span class="keywordflow">return</span> this-&gt;<a class="code" href="classruntime_1_1_interval_positive_integer.html#afa85dc12926acde8528a410bfeef7abb">ui_upperBound</a>;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;  }</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classruntime_1_1_interval_positive_integer.html#a77e07106dfe9bfe353eb84fb0917261e">   54</a></span>&#160;  T_INTEGERDATATYPE <a class="code" href="classruntime_1_1_interval_positive_integer.html#a77e07106dfe9bfe353eb84fb0917261e">upperBoundToEvaluate</a>() {</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keywordflow">return</span> this-&gt;<a class="code" href="classruntime_1_1_interval_positive_integer.html#afa85dc12926acde8528a410bfeef7abb">ui_upperBound</a> &gt; this-&gt;<a class="code" href="classruntime_1_1_interval_positive_integer.html#aba51e34947c0fdbf11a10828657fa4e4">ui_sizeInterval</a>? this-&gt;<a class="code" href="classruntime_1_1_interval_positive_integer.html#afa85dc12926acde8528a410bfeef7abb">ui_upperBound</a></div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;      :this-&gt;<a class="code" href="classruntime_1_1_interval_positive_integer.html#aba51e34947c0fdbf11a10828657fa4e4">ui_sizeInterval</a>;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;  }</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classruntime_1_1_interval_positive_integer.html#adaefc15876a03ceebaaf490ac91cc48f">   59</a></span>&#160;  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classruntime_1_1_interval_positive_integer.html#adaefc15876a03ceebaaf490ac91cc48f">increaseUpperBound</a>() { </div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    ++this-&gt;<a class="code" href="classruntime_1_1_interval_positive_integer.html#afa85dc12926acde8528a410bfeef7abb">ui_upperBound</a>;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;  }</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="classruntime_1_1_interval_positive_integer.html#af92604bbecad14f1d34743a8d108b612">   63</a></span>&#160;  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classruntime_1_1_interval_positive_integer.html#af92604bbecad14f1d34743a8d108b612">setSizeInterval</a>(T_INTEGERDATATYPE aiui_sizeInterval)   </div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;  {</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    this-&gt;<a class="code" href="classruntime_1_1_interval_positive_integer.html#aba51e34947c0fdbf11a10828657fa4e4">ui_sizeInterval</a> = aiui_sizeInterval;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;  }</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="classruntime_1_1_interval_positive_integer.html#a53e2bd4b10ae6e506d4afa8a9c4c48a6">   68</a></span>&#160;  <span class="keyword">inline</span> T_INTEGERDATATYPE <a class="code" href="classruntime_1_1_interval_positive_integer.html#a53e2bd4b10ae6e506d4afa8a9c4c48a6">getSizeInterval</a>() </div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;  {</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="keywordflow">return</span> this-&gt;<a class="code" href="classruntime_1_1_interval_positive_integer.html#aba51e34947c0fdbf11a10828657fa4e4">ui_sizeInterval</a>;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;  }</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classruntime_1_1_interval_positive_integer.html#afa85dc12926acde8528a410bfeef7abb">   74</a></span>&#160;  T_INTEGERDATATYPE   <a class="code" href="classruntime_1_1_interval_positive_integer.html#afa85dc12926acde8528a410bfeef7abb">ui_upperBound</a>;    <span class="comment">/*MAXIMO VALOR EVALUADO*/</span></div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classruntime_1_1_interval_positive_integer.html#aba51e34947c0fdbf11a10828657fa4e4">   75</a></span>&#160;  T_INTEGERDATATYPE   <a class="code" href="classruntime_1_1_interval_positive_integer.html#aba51e34947c0fdbf11a10828657fa4e4">ui_sizeInterval</a>;  </div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;};</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;} <span class="comment">/*END namespace executiontime </span></div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="comment">   */</span></div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="preprocessor">#endif  </span><span class="comment">/*INTERVAL_POSITIVE_INTEGER_HPP*/</span><span class="preprocessor"></span></div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div><div class="ttc" id="classruntime_1_1_interval_positive_integer_html_adf85cb429c44b22444bb618422338b24"><div class="ttname"><a href="classruntime_1_1_interval_positive_integer.html#adf85cb429c44b22444bb618422338b24">runtime::IntervalPositiveInteger::~IntervalPositiveInteger</a></div><div class="ttdeci">~IntervalPositiveInteger()</div><div class="ttdef"><b>Definition:</b> <a href="interval__positiveintegers_8hpp_source.html#l00037">interval_positiveintegers.hpp:37</a></div></div>
<div class="ttc" id="classruntime_1_1_interval_positive_integer_html_a1a91051ab59ff33e8139ac3ec50b86e1"><div class="ttname"><a href="classruntime_1_1_interval_positive_integer.html#a1a91051ab59ff33e8139ac3ec50b86e1">runtime::IntervalPositiveInteger::getUpperBound</a></div><div class="ttdeci">T_INTEGERDATATYPE getUpperBound()</div><div class="ttdef"><b>Definition:</b> <a href="interval__positiveintegers_8hpp_source.html#l00049">interval_positiveintegers.hpp:49</a></div></div>
<div class="ttc" id="classruntime_1_1_interval_positive_integer_html_a53e2bd4b10ae6e506d4afa8a9c4c48a6"><div class="ttname"><a href="classruntime_1_1_interval_positive_integer.html#a53e2bd4b10ae6e506d4afa8a9c4c48a6">runtime::IntervalPositiveInteger::getSizeInterval</a></div><div class="ttdeci">T_INTEGERDATATYPE getSizeInterval()</div><div class="ttdef"><b>Definition:</b> <a href="interval__positiveintegers_8hpp_source.html#l00068">interval_positiveintegers.hpp:68</a></div></div>
<div class="ttc" id="classruntime_1_1_interval_positive_integer_html_adaefc15876a03ceebaaf490ac91cc48f"><div class="ttname"><a href="classruntime_1_1_interval_positive_integer.html#adaefc15876a03ceebaaf490ac91cc48f">runtime::IntervalPositiveInteger::increaseUpperBound</a></div><div class="ttdeci">void increaseUpperBound()</div><div class="ttdef"><b>Definition:</b> <a href="interval__positiveintegers_8hpp_source.html#l00059">interval_positiveintegers.hpp:59</a></div></div>
<div class="ttc" id="classruntime_1_1_interval_positive_integer_html_ad55d97a8b5cb0dc6c01e5dbe89aca0e4"><div class="ttname"><a href="classruntime_1_1_interval_positive_integer.html#ad55d97a8b5cb0dc6c01e5dbe89aca0e4">runtime::IntervalPositiveInteger::initialize</a></div><div class="ttdeci">void initialize()</div><div class="ttdef"><b>Definition:</b> <a href="interval__positiveintegers_8hpp_source.html#l00039">interval_positiveintegers.hpp:39</a></div></div>
<div class="ttc" id="classruntime_1_1_interval_positive_integer_html_a90db61e394006061a12166ff73f6a7d5"><div class="ttname"><a href="classruntime_1_1_interval_positive_integer.html#a90db61e394006061a12166ff73f6a7d5">runtime::IntervalPositiveInteger::getLowerBound</a></div><div class="ttdeci">T_INTEGERDATATYPE getLowerBound()</div><div class="ttdef"><b>Definition:</b> <a href="interval__positiveintegers_8hpp_source.html#l00043">interval_positiveintegers.hpp:43</a></div></div>
<div class="ttc" id="classruntime_1_1_interval_positive_integer_html_aba51e34947c0fdbf11a10828657fa4e4"><div class="ttname"><a href="classruntime_1_1_interval_positive_integer.html#aba51e34947c0fdbf11a10828657fa4e4">runtime::IntervalPositiveInteger::ui_sizeInterval</a></div><div class="ttdeci">T_INTEGERDATATYPE ui_sizeInterval</div><div class="ttdef"><b>Definition:</b> <a href="interval__positiveintegers_8hpp_source.html#l00075">interval_positiveintegers.hpp:75</a></div></div>
<div class="ttc" id="classruntime_1_1_interval_positive_integer_html_a3337ff60d8a71581d626a62f30844beb"><div class="ttname"><a href="classruntime_1_1_interval_positive_integer.html#a3337ff60d8a71581d626a62f30844beb">runtime::IntervalPositiveInteger::IntervalPositiveInteger</a></div><div class="ttdeci">IntervalPositiveInteger(T_INTEGERDATATYPE aiui_sizeInterval)</div><div class="ttdef"><b>Definition:</b> <a href="interval__positiveintegers_8hpp_source.html#l00034">interval_positiveintegers.hpp:34</a></div></div>
<div class="ttc" id="classruntime_1_1_interval_positive_integer_html_af92604bbecad14f1d34743a8d108b612"><div class="ttname"><a href="classruntime_1_1_interval_positive_integer.html#af92604bbecad14f1d34743a8d108b612">runtime::IntervalPositiveInteger::setSizeInterval</a></div><div class="ttdeci">void setSizeInterval(T_INTEGERDATATYPE aiui_sizeInterval)</div><div class="ttdef"><b>Definition:</b> <a href="interval__positiveintegers_8hpp_source.html#l00063">interval_positiveintegers.hpp:63</a></div></div>
<div class="ttc" id="namespaceruntime_html"><div class="ttname"><a href="namespaceruntime.html">runtime</a></div><div class="ttdoc">Module for obtaining run-time statistics.</div></div>
<div class="ttc" id="classruntime_1_1_interval_positive_integer_html_afa85dc12926acde8528a410bfeef7abb"><div class="ttname"><a href="classruntime_1_1_interval_positive_integer.html#afa85dc12926acde8528a410bfeef7abb">runtime::IntervalPositiveInteger::ui_upperBound</a></div><div class="ttdeci">T_INTEGERDATATYPE ui_upperBound</div><div class="ttdef"><b>Definition:</b> <a href="interval__positiveintegers_8hpp_source.html#l00074">interval_positiveintegers.hpp:74</a></div></div>
<div class="ttc" id="classruntime_1_1_interval_positive_integer_html"><div class="ttname"><a href="classruntime_1_1_interval_positive_integer.html">runtime::IntervalPositiveInteger</a></div><div class="ttdoc">Interval of positive integer.</div><div class="ttdef"><b>Definition:</b> <a href="interval__positiveintegers_8hpp_source.html#l00032">interval_positiveintegers.hpp:32</a></div></div>
<div class="ttc" id="classruntime_1_1_interval_positive_integer_html_a77e07106dfe9bfe353eb84fb0917261e"><div class="ttname"><a href="classruntime_1_1_interval_positive_integer.html#a77e07106dfe9bfe353eb84fb0917261e">runtime::IntervalPositiveInteger::upperBoundToEvaluate</a></div><div class="ttdeci">T_INTEGERDATATYPE upperBoundToEvaluate()</div><div class="ttdef"><b>Definition:</b> <a href="interval__positiveintegers_8hpp_source.html#l00054">interval_positiveintegers.hpp:54</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 19 2019 08:58:31 for Library Evolutionary Algorithms for Clustering (LEAC) by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
